package poker;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Pokers {

    public List<poker> getPokersList() {
        List<poker> pokersList = new ArrayList<poker>();//扑克牌牌组
        String[] type={"梅花","方块","红桃","黑桃"};
        String[] num={"A","2", "3", "4", "5", "6", "7", "8", "9", "10", "J","Q","K" };
        for (int i=0;i<type.length;i++){//先循环花色
            for (int j=0;j<num.length;j++){
                pokersList.add(new poker(type[i],num[j]));
            }
            Collections.shuffle(pokersList);//打乱牌组
        }
        return pokersList;
    }

//    打乱牌组
    public void Upset(List<poker> pokersList){
        Collections.shuffle(pokersList);
    }

}
